package com.nidu.demo.log.gateway;

import com.alibaba.cola.dto.PageResponse;
import com.nidu.demo.log.model.OperateLog;
import com.nidu.demo.log.model.OperateLogCriteria;

import java.util.List;
import java.util.Set;

/**
 * 操作日志网关接口
 *
 * @author auto
 */
public interface OperateLogGateway {

    OperateLog create(OperateLog operateLog);

    OperateLog update(OperateLog operateLog);

    void deleteById(Long id);

    void deleteByIds(Set<Long> ids);

    OperateLog getById(Long id);

    List<OperateLog> getByIds(Set<Long> ids);

    List<OperateLog> listByCondition(OperateLogCriteria criteria);

    PageResponse<OperateLog> pageByCondition(OperateLogCriteria criteria);

    void deleteAll();
}
